<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AddCourse.aspx.cs" Inherits="AdminPages_AddCourse" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 411px">
        <tr>
            <td align="right" 
                style="width: 203px">
                Course Name:
            </td>
            <td style="width: 223px">
                <asp:TextBox ID="txtCourseName" runat="server" MaxLength="15"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvCourseName" 
                    runat="server" 
                    ControlToValidate="txtCourseName"
                    ErrorMessage="RequiredFieldValidator">
                    *
                </asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" 
                style="width: 203px">
                Room Number:
            </td>
            <td style="width: 223px">
                <asp:TextBox ID="txtRoomNum" runat="server" MaxLength="5"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvRoomNumber" 
                    runat="server" 
                    ControlToValidate="txtRoomNum"
                    ErrorMessage="RequiredFieldValidator">
                    *
                </asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" 
                style="width: 203px">
                Credits:
            </td>
            <td style="width: 223px">
                <asp:TextBox ID="txtCredits" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvCredit" 
                    runat="server" 
                    ControlToValidate="txtCredits"
                    ErrorMessage="RequiredFieldValidator">
                    *
                </asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" 
                style="width: 203px">
                Instructor ID:
            </td>
            <td style="width: 223px">
                <asp:TextBox ID="txtInstructor" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvInstructor" 
                    runat="server" 
                    ControlToValidate="txtInstructor"
                    ErrorMessage="RequiredFieldValidator">
                    *
                </asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" 
                style="width: 203px">
                Minimum Students:
            </td>
            <td style="width: 223px">
                <asp:TextBox ID="txtMinStudent" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvMinStudent" 
                    runat="server" 
                    ControlToValidate="txtMinStudent"
                    ErrorMessage="RequiredFieldValidator">
                    *
                </asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" 
                style="width: 203px">
                Maximum Students:
            </td>
            <td style="width: 223px">
                <asp:TextBox ID="txtMaxStudent" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvMaxStudent" 
                    runat="server" 
                    ControlToValidate="txtMaxStudent"
                    ErrorMessage="RequiredFieldValidator">
                    *
                </asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Label ID="lblDescription" 
                    runat="server" 
                    Text="Description">
                </asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="height: 106px">
                <asp:TextBox ID="txtDescription" 
                    runat="server" 
                    Height="89px" 
                    Width="396px" 
                    TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 203px">
                <asp:Button ID="btnSubmit" 
                    runat="server" 
                    OnClick="btnSubmit_Click" 
                    Text="Submit" />
            </td>
            <td style="width: 223px">
                <asp:Button ID="btnCancel" 
                    runat="server" 
                    OnClick="btnCancel_Click" 
                    Text="Cancel" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <h1>
        <span>
            <asp:Label ID="welcomeLabel" 
                runat="server" 
                ForeColor="White" />
        </span>
    </h1>
    <p>
        <span>
            <asp:Label ID="dbErrorLabel" 
                runat="server" 
                ForeColor="Red" />
        </span>
    </p>
    <p>
        <asp:Button ID="btnContinue" 
            runat="server" 
            OnClick="Button1_Click" 
            Text="Conitnue" 
            Visible="False" />
    </p>
</asp:Content>

